package com.ruoyi.safe.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 延期申请对象 biz_extension_requests
 *
 * @author ruoyi
 * @date 2023-12-08
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)

public class BizExtensionRequests extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 申请人
     */
    @Excel(name = "申请人")
    private String userName;

    /**
     * 申请时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dateTime;

    /**
     * 申请延期至
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "申请延期至", width = 30, dateFormat = "yyyy-MM-dd")
    private Date extensionTime;

    /**
     * 原整改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "原整改日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date formerTime;

    /**
     * 延期原因
     */
    @Excel(name = "延期原因")
    private String reason;

    /**
     * 自检表id
     */
    @Excel(name = "自检表id")
    private Long recordId;

    /**
     * 状态-0不批准 1已批准
     */
    private String status;

    /**
     * 批复人
     */
    private String replyUser;

    /**
     * 批复时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date replyTime;

    /**
     * 批复意见
     */
    private String replyOpinion;

    /**
     * 项目id
     */
    private String projectId;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;

    /*1有权限 2没权限*/
    private String userType;

    private String userId;

}
